<template>
  <bc-layout v-if="useLayout"></bc-layout>
  <router-view v-else />
</template>

<script setup>
import { useRoute } from 'vue-router'
import BcLayout from '@/components/bcLayout/BcLayout.vue'

const route = useRoute()
// 定义计算属性
const useLayout = computed(() => {
  const { meta } = route
  return meta.layout !== false
})
</script>

<style lang="scss" scoped></style>
